package main

import (
	"fmt"
	"math/rand"
)

/*
@author: wy
@file: 店名系统.py
@time: 2023/12/14 16:56
*/

func main() {

	fmt.Println("按任意键点名(按q退出)")
	var x string
	name := []string{"蔡徐坤", "陈立农", "范丞丞", "黄明昊", "林俊彦", "朱正廷", "王子异"}
	for {
		fmt.Scanln(&x)
		if x != "q" {
			randnum := rand.Intn(len(name))
			println(name[randnum])
			name = append(name[:randnum], name[randnum+1:]...)

			if len(name) == 0 {
				break
			}
		} else {
			break
		}
	}

}
